package cn.tedu.boot101.entity;

public class Student {
    private Integer id;
    private String name;
    private Integer age;
    private String gender;
    private Integer classId;

    public Student() {
    }

    public Student(Integer id, String name, Integer age, String gender, Integer classId) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.classId = classId;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return classId
     */
    public Integer getClassId() {
        return classId;
    }

    /**
     * 设置
     * @param classId
     */
    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    @Override
    public String toString() {
        return "Student{id = " + id + ", name = " + name + ", age = " + age + ", gender = " + gender + ", classId = " + classId + "}";
    }
}
